home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
TSMCollation.xh
< prev
next >
Wrap
Text File
|
1996-05-01
|
16KB
|
570 lines
/*
* This file was generated by the SOM Compiler.
* FileName: TSMCollation.xh.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emitxh.dll: 2.33
*/
#ifndef SOM_TSMCollation_xh
#define SOM_TSMCollation_xh
class TSMCollation;
#define TSMCollation_MajorVersion 1
#define TSMCollation_MinorVersion 1
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_TSMObject_xh
#include <TSMObject.xh>
#endif
#ifndef TSMCollation_API
#define TSMCollation_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
class SOMClass;
class SOMObject;
class HIWindow;
class HIEmbeddingPanel;
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define TSMCollationCClassData TSMCollationClassData
#define TSMCollationNewClass(major,minor) somNewVersionedClassReference(TSMCollation,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define TSMCollationMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the TSMCollation class object, and the methods it introduces. */
SOMEXTERN struct TSMCollationClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken DoCollationProcessText;
} SOMDLINK TSMCollationClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(TSMCollation_Class_Source) && !defined(SOM_Module_tsmcollation_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list TSMCollationClassData
#endif
#endif
/*
* -- Typedefs for TSMCollation Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_TSMCollation_DoCollationProcessText)(TSMCollation *somSelf, Environment *ev,
CollationRef collationRef,
CollateOptions options,
ConstTextObject text,
TextObjectIndex startIndex,
TextObjectIndex endIndex,
TextObject result);
/*
* -- Typedefs for Inherited Methods
*/
typedef TSMContext (* SOMLINK somTD_TSMCollation__get_fTSMContext)(TSMCollation *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_TSMCollation__set_fTSMContext)(TSMCollation *somSelf, Environment *ev,
TSMContext fTSMContext);
typedef OSStatus (* SOMLINK somTD_TSMCollation__get_fStatus)(TSMCollation *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_TSMCollation__set_fStatus)(TSMCollation *somSelf, Environment *ev,
OSStatus fStatus);
typedef TSMServiceContextRef (* SOMLINK somTD_TSMCollation__get_fServiceContext)(TSMCollation *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_TSMCollation__set_fServiceContext)(TSMCollation *somSelf, Environment *ev,
TSMServiceContextRef fServiceContext);
typedef OSStatus (* SOMLINK somTD_TSMCollation_InitializeService)(TSMCollation *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMCollation_TerminateService)(TSMCollation *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMCollation_ServiceChanged)(TSMCollation *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMCollation_EditInlineHole)(TSMCollation *somSelf, Environment *ev,
AppleEvent* theEvent);
typedef OSStatus (* SOMLINK somTD_TSMCollation_FeatureChanged)(TSMCollation *somSelf, Environment *ev,
UInt32 theType);
typedef OSStatus (* SOMLINK somTD_TSMCollation_ActivateService)(TSMCollation *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMCollation_DeactivateService)(TSMCollation *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMCollation_ServiceMouseEvent)(TSMCollation *somSelf, Environment *ev,
Point* mousePos,
KeyboardModifiers Modifiers,
UInt32 when,
UInt32 theEventType,
AppleEvent* event);
typedef OSStatus (* SOMLINK somTD_TSMCollation_ServiceKeyEvent)(TSMCollation *somSelf, Environment *ev,
KeyboardModifiers Modifiers,
VirtualKeyCode theKeyCode,
VirtualKeyCode theCharCode,
AppleEvent* event);
typedef OSStatus (* SOMLINK somTD_TSMCollation_ServiceWindowEvent)(TSMCollation *somSelf, Environment *ev,
HIWindow* theWindow,
UInt32 theEventType,
AppleEvent* event);
typedef OSStatus (* SOMLINK somTD_TSMCollation_HideServiceWindows)(TSMCollation *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMCollation_DoSetCursor)(TSMCollation *somSelf, Environment *ev,
Point* mousePos,
RegionClass rgnClass,
ByteOffset offset,
boolean isLeftHand,
AppleEvent* theEvent);
typedef OSStatus (* SOMLINK somTD_TSMCollation_ReleaseInlineHoles)(TSMCollation *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMCollation_TerminateInput)(TSMCollation *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_TSMCollation_somInit)(TSMCollation *somSelf);
typedef void (* SOMLINK somTD_TSMCollation_somUninit)(TSMCollation *somSelf);
typedef SOMObject* (* SOMLINK somTD_TSMCollation_somDuplicateReference)(TSMCollation *somSelf);
typedef boolean (* SOMLINK somTD_TSMCollation_somCompareReference)(TSMCollation *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_TSMCollation_somRelease)(TSMCollation *somSelf);
typedef void (* SOMLINK somTD_TSMCollation_somFree)(TSMCollation *somSelf);
typedef boolean (* SOMLINK somTD_TSMCollation_somCanDelete)(TSMCollation *somSelf);
typedef SOMClass* (* SOMLINK somTD_TSMCollation_somGetClass)(TSMCollation *somSelf);
typedef corbastring (* SOMLINK somTD_TSMCollation_somGetClassName)(TSMCollation *somSelf);
typedef long (* SOMLINK somTD_TSMCollation_somGetSize)(TSMCollation *somSelf);
typedef boolean (* SOMLINK somTD_TSMCollation_somIsA)(TSMCollation *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_TSMCollation_somRespondsTo)(TSMCollation *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_TSMCollation_somIsInstanceOf)(TSMCollation *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_TSMCollation_somDispatch)(TSMCollation *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_TSMCollation_somClassDispatch)(TSMCollation *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_TSMCollation_somCastObj)(TSMCollation *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_TSMCollation_somResetObj)(TSMCollation *somSelf);
typedef SOMObject* (* SOMLINK somTD_TSMCollation_somPrintSelf)(TSMCollation *somSelf);
typedef void (* SOMLINK somTD_TSMCollation_somDumpSelf)(TSMCollation *somSelf,
long level);
typedef void (* SOMLINK somTD_TSMCollation_somDumpSelfInt)(TSMCollation *somSelf,
long level);
}
#endif /* TSMCollation_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for TSMCollation
*/
class TSMCollation : public TSMObject
{
public:
// TSMCollation::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for TSMCollation, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(TSMCollation);
}
// TSMCollation::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: DoCollationProcessText */
OSStatus DoCollationProcessText(Environment *ev,
CollationRef collationRef,
CollateOptions options,
ConstTextObject text,
TextObjectIndex startIndex,
TextObjectIndex endIndex,
TextObject result)
{
return SOM_ResolveD(this,TSMCollation,TSMCollation,DoCollationProcessText)
(this,ev,collationRef,options,text,startIndex,endIndex,result);
}
/*
* -- Inherited methods
*/
/* method: _get_fTSMContext */
TSMContext _get_fTSMContext(Environment *ev)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,_get_fTSMContext)
(this,ev);
}
/* method: _set_fTSMContext */
void _set_fTSMContext(Environment *ev,
TSMContext fTSMContext)
{
SOM_ResolveD(this,TSMCollation,TSMObject,_set_fTSMContext)
(this,ev,fTSMContext);
}
/* method: _get_fStatus */
OSStatus _get_fStatus(Environment *ev)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,_get_fStatus)
(this,ev);
}
/* method: _set_fStatus */
void _set_fStatus(Environment *ev,
OSStatus fStatus)
{
SOM_ResolveD(this,TSMCollation,TSMObject,_set_fStatus)
(this,ev,fStatus);
}
/* method: _get_fServiceContext */
TSMServiceContextRef _get_fServiceContext(Environment *ev)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,_get_fServiceContext)
(this,ev);
}
/* method: _set_fServiceContext */
void _set_fServiceContext(Environment *ev,
TSMServiceContextRef fServiceContext)
{
SOM_ResolveD(this,TSMCollation,TSMObject,_set_fServiceContext)
(this,ev,fServiceContext);
}
/* method: InitializeService */
OSStatus InitializeService(Environment *ev)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,InitializeService)
(this,ev);
}
/* method: TerminateService */
OSStatus TerminateService(Environment *ev)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,TerminateService)
(this,ev);
}
/* method: ServiceChanged */
OSStatus ServiceChanged(Environment *ev)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,ServiceChanged)
(this,ev);
}
/* method: EditInlineHole */
OSStatus EditInlineHole(Environment *ev,
AppleEvent* theEvent)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,EditInlineHole)
(this,ev,theEvent);
}
/* method: FeatureChanged */
OSStatus FeatureChanged(Environment *ev,
UInt32 theType)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,FeatureChanged)
(this,ev,theType);
}
/* method: ActivateService */
OSStatus ActivateService(Environment *ev)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,ActivateService)
(this,ev);
}
/* method: DeactivateService */
OSStatus DeactivateService(Environment *ev)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,DeactivateService)
(this,ev);
}
/* method: ServiceMouseEvent */
OSStatus ServiceMouseEvent(Environment *ev,
Point* mousePos,
KeyboardModifiers Modifiers,
UInt32 when,
UInt32 theEventType,
AppleEvent* event)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,ServiceMouseEvent)
(this,ev,mousePos,Modifiers,when,theEventType,event);
}
/* method: ServiceKeyEvent */
OSStatus ServiceKeyEvent(Environment *ev,
KeyboardModifiers Modifiers,
VirtualKeyCode theKeyCode,
VirtualKeyCode theCharCode,
AppleEvent* event)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,ServiceKeyEvent)
(this,ev,Modifiers,theKeyCode,theCharCode,event);
}
/* method: ServiceWindowEvent */
OSStatus ServiceWindowEvent(Environment *ev,
HIWindow* theWindow,
UInt32 theEventType,
AppleEvent* event)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,ServiceWindowEvent)
(this,ev,theWindow,theEventType,event);
}
/* method: HideServiceWindows */
OSStatus HideServiceWindows(Environment *ev)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,HideServiceWindows)
(this,ev);
}
/* method: DoSetCursor */
OSStatus DoSetCursor(Environment *ev,
Point* mousePos,
RegionClass rgnClass,
ByteOffset offset,
boolean isLeftHand,
AppleEvent* theEvent)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,DoSetCursor)
(this,ev,mousePos,rgnClass,offset,isLeftHand,theEvent);
}
/* method: ReleaseInlineHoles */
OSStatus ReleaseInlineHoles(Environment *ev)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,ReleaseInlineHoles)
(this,ev);
}
/* method: TerminateInput */
OSStatus TerminateInput(Environment *ev)
{
return SOM_ResolveD(this,TSMCollation,TSMObject,TerminateInput)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,TSMCollation,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,TSMCollation,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,TSMCollation,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean TSMCollation_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,TSMCollation,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean TSMCollation_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,TSMCollation,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,TSMCollation,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,TSMCollation,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,TSMCollation,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* TSMCollation */
#endif /* SOM_TSMCollation_xh */